﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PACKETPARSERMAX20.CORE 
{
 
    public class CharEnumInfo
    {
        public UInt64 Guid = 0;
        public string Name = "";

        public byte Race = 0;
        public byte Class = 0;
        public byte Gender = 0;
        public byte Skin = 0;
        public byte Face = 0;
        public byte hairStyle = 0;
        public byte hairColour = 0;
        public byte facialHair = 0;
        public byte Level = 0;

        public UInt32 ZoneId = 0;
        public UInt32 MapId = 0;

        public float PositionX = 0;
        public float PositionY = 0;
        public float PositionZ = 0;

        public UInt32 GuildID = 0;
        public UInt32 UnkUInt32_1 = 0;
        public CharacterCustomizeFlags CustomizeFlags = 0;
        public byte UnkFlags = 0;
        public UInt32 CharFlags = 0;
        //// 0x01
        //// 0x02
        //// 0x04 - CHAR_LOGIN_LOCKED_FOR_TRANSFER
        //// 0x08
        //// 0x10
        //// 0x20
        //// 0x40

        //uint8 flags = 0;
        //if(HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_HELM))
        //    flags |= 0x04;
        //if(HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_CLOAK))
        //    flags |= 0x08;
        //if(HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST))
        //    flags |= 0x20;
        //if(HasAtLoginFlag(AT_LOGIN_RENAME))
        //    flags |= 0x40;
        public byte Flags = 0;
        //// 0x01 - unknown
        //// 0x02 - unknown
        //// 0x04 - hide helm
        //// 0x08 - hide cloak
        //// 0x10 - unknown
        //// 0x20 - dead(ghost)
        //// 0x40 - need rename

        public byte Unknown1 = 0;

        public byte Unknown2 = 0;
        //// 0x01 - CHAR_LOGIN_LOCKED_BY_BILLING

        public byte Unknown3 = 0;


        public UInt32 PetDisplayId = 0;
        public UInt32 PetLevel = 0;
        public UInt32 PetFamily = 0;

        public UInt32[] DisplayInfoID;
        public byte[] InventoryType;
        public UInt32[] Inventoryauraid;

        public UInt32 Firstbagdisplayid = 0;
        public byte FirstbagInventoryType = 0;
        public UInt32 Enchant = 0;
        public byte Unknown4 = 0;
    }
}
